//package com.d0305;
//
//public class Racing{
//      int topSpeed=100;
//      public void upgradeEngine(RepairFactory r)
//      {
//          r.upgradeEngine(racing);
//      }
//
//    public static void main(String[] args) {
//        Racing racing = new Racing();
//        RepairFactory r = new RepairFactory();
//        System.out.println("升级前速度为:"+racing.topSpeed);
//        racing.upgradeEngine(r);
//        System.out.println("升级后速度为:"+racing.topSpeed);
//
//
//    }
//}
